package com.atguigu.cloud.order.feign.fallback;

import com.atguigu.cloud.order.feign.UserOpenFeign;
import com.atguigu.cloud.order.pojo.User;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class UserFeignClientFallback implements UserOpenFeign {

    @Override
    public User findOrderByOrderId(Long userId) {
        log.error("订单服务调用用户服务失败");
        return new User();
    }

    @Override
    public User findUser(User user) {
        return new User();
    }
}